package com.neutech.neuski.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neuski.mapper.SkiMapper;
import com.neutech.neuski.service.SkiService;
import com.neutech.po.Ski;

@Service
public class SkiServiceImpl implements SkiService {
	@Autowired
	private SkiMapper skiMapper;
	//查询
	@Override
	public Ski inquireSki(int id) {
		return skiMapper.inquireSki(id);
	}
//增加
	@Override
	public Ski increaseSki(Ski ski) {
		// TODO Auto-generated method stub
		skiMapper.increaseSki(ski);
		return new Ski();
	}
//修改
	@Override
	public Ski updateSki(Ski ski) {
		// TODO Auto-generated method stub
		skiMapper.updateSki(ski);
		return new Ski();
	}
//删除
	@Override
	public Ski deleteSki(Ski ski) {
		// TODO Auto-generated method stub
		skiMapper.deleteSki(ski);
		return new Ski();
	}
}
